﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace VS2048
{
    public interface ICell
    {
        int Width { get; set; }
        int Height { get; set; }
        int Left { get; set; }
        int Top { get; set; }
        int ParentWidth { get; set; }

        bool CurrentMerged { get; set; }
        string DisplayNum { get; set; }
        Image BackImage { get; set; }
        Font TextFont { get; set; }
        Color TextColor { get; set; }
        Color BackColor { get; set; }
        CellCoordinate Coordinate { get; set; }
        CellShape Shape { get; set; }

        void Refresh();
        void Render(Graphics g);
    }

    public struct CellCoordinate
    {
        public int RowIndex;
        public int ColIndex;

        public CellCoordinate(int rowidx, int colidx)
        {
            RowIndex = rowidx;
            ColIndex = colidx;
        }
    }

    public enum CellShape { Ellipse, Rectangle }
}
